package com.site.dao.master;

import java.util.List;

import com.site.dto.master.PropertyBizBean;
import com.site.model.master.PropertyInfo;
import com.site.util.extremetable.QueryPage;

/**
 * property数据访问类
 * @author Administrator
 *
 */
public interface PropertyDao {

	/**
	 * 获取所 有的属性文件信息
	 * @return
	 */
	public abstract List<PropertyInfo> getAllProperty();

	public abstract List<PropertyInfo> getAllProperty(PropertyBizBean property, QueryPage queryPage);

	public abstract PropertyInfo getPropertyKey(String propertyKey);

	public abstract boolean isExistsProertyKey(String propertyKey,
			int propertyId);

	/**
	 * 根据ID查找Property信息
	 * @param propertyId
	 * @return
	 */
	public abstract PropertyInfo getPropertyById(int propertyId);

	/**
	 * 根据Id逻辑删除Property
	 * @param codeId
	 * @return
	 */
	public abstract int tombstoneProperty(int codeId);

	/**
	 * 查找所有的property的备注作为查询条件
	 * @return
	 */
	public abstract List<String> findAllProperty();

	public abstract void markAsDeleted(Integer obj);

	public abstract void update(PropertyInfo po);

	public abstract void save(PropertyInfo po);

}